//
//  LoginView.m
//  Moko
//
//  Created by cj848 on 11. 7. 25..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "LoginView.h"


@implementation LoginView
@synthesize logoImage;

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
    CGRect bounds = [[UIScreen mainScreen] bounds];
    UIImage* logo = [UIImage imageNamed:@"seeko_logo.png"];
    float ratio = 0.6;
    float logoWidth = [logo size].width * ratio;
    float logoHeight = [logo size].height * ratio;
    CGPoint origin = CGPointMake((bounds.size.width - logoWidth) / 2, 10);
    CGRect logoFrame = CGRectMake(origin.x, origin.y, logoWidth, logoHeight);
    [logoImage drawInRect:bounds];
    [logo drawInRect:logoFrame];
}

- (void)dealloc
{
    [logoImage release];
    [super dealloc];
}

@end
